package com.fqgj.sentry.policy.engine.domain;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * Created by kennykong on 2017/7/18.
 */
public class VariableMap implements Serializable {



    /**
     * 一次风控请求 所需的变量集合
     */
    private Map<String, Variable> variableMap = new HashMap<>();

    public VariableMap setVariableMap(Map<String, Variable> variableMap) {
        this.variableMap = variableMap;
        return this;
    }

    public Map<String, Variable> getVariableMap() {
        return variableMap;
    }



    public Variable getVariable(String key) {

        return this.variableMap.get(key);
    }

    public Variable setVariable(String key, Variable value) {
        return this.variableMap.put(key,value);
    }
}
